package com.wnxy.sddfp.system;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import java.lang.reflect.Proxy;

public class App {
    public static void main(String[] args) {
        // Spring加密工具类
        BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        // 对123456加密
        String encode = "$2a$10$ncWehzTrqGLA16ejbWlOPueehGhsaC094WAxxRzEYbpJD330RN3cW";

        // 判断
        boolean matches = passwordEncoder.matches("123456", encode);
        System.out.println("matches = " + matches);
    }
}
